package cdu.bbs.bbsv2.mapper;

import cdu.bbs.bbsv2.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    User login(@Param("loginAct") String loginAct, @Param("loginPwd") String loginPwd);
    List<User> getUsers();
    int register(User user);
    int deleteUserById(String id);

    User getUserById(String id);

    int modUserById(User user);

    List<User> getUserByCondition(Map<String, String> conditions);

    int deleteUserByIds(String[] ids);
}
